package com.sunyard.pcc.core.manager;

import com.sunyard.michiru.common.entity.PageResult;
import com.sunyard.pcc.dal.model.SysUserDO;
import com.sunyard.pcc.dal.query.SysUserQuery;

import java.util.List;

/**
 * Manager for SysUser.
 */
public interface SysUserManager {

    /**
     * query count by query condition.
     */
    int countByQuery(SysUserQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysUserQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysUserDO record);

    /**
     * insert selective.
     */
    long insertSelective(SysUserDO record);

    /**
     * select by query condition.
     */
    List<SysUserDO> selectByQuery(SysUserQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SysUserDO> selectByQueryWithPage(SysUserQuery query);

    /**
     * select by primary key.
     */
    SysUserDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SysUserDO record,  SysUserQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SysUserDO record, SysUserQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysUserDO record);

}